//
//  BTSliderView.h
//  BaseTools
//
//  Created by 李挺哲 on 15/8/27.
//  Copyright (c) 2015年 ltz. All rights reserved.
//
#define DEVICE_WIDTH CGRectGetWidth([UIScreen mainScreen].bounds)
#define DEFAULT_SLIDER_COLOR [UIColor orangeColor]
#define SLIDER_VIEW_HEIGHT 2
#define SLIDERBAR_HEIGHT 44
#import <UIKit/UIKit.h>
typedef void(^BTSlideBarItemSelectedCallback)(NSUInteger idx);
@interface BTSliderBar : UIView

// All the titles of FDSilderBar
@property (copy, nonatomic) NSArray *itemsTitle;

// All the item's text color of the normal state
@property (strong, nonatomic) UIColor *itemColor;

// The selected item's text color
@property (strong, nonatomic) UIColor *itemSelectedColor;

// The slider color
@property (strong, nonatomic) UIColor *sliderColor;

// Add the callback deal when a slide bar item be selected
- (void)slideBarItemSelectedCallback:(BTSlideBarItemSelectedCallback)callback;

// Set the slide bar item at index to be selected
- (void)selectSlideBarItemAtIndex:(NSUInteger)index;
@end
